package com.example.springb;

import com.example.springb.service.LoginService;
import org.springframework.boot.ConfigurableBootstrapContext;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class SpringbApplication {

    public static void main(String[] args) {

        ConfigurableApplicationContext  context =SpringApplication.run(SpringbApplication.class ,args) ;
        LoginService loginService=(LoginService) context.getBean(LoginService.class ) ;
        loginService.login("admin","admin");

    }



}
